package com.imddy.tweb.util;

import java.io.InputStream;
import java.util.Properties;

public class PropertiesUtils {

	private Properties properties = new Properties();

	public PropertiesUtils(String file) {
		properties = new Properties();
		InputStream in;
		try {
			in = PropertiesUtils.class.getResourceAsStream(file);
			properties.load(in);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	public String getProperties(String key) {
		return properties.getProperty(key);
	}
	

}
